<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js初体验</title>
    <!-- 2. 内嵌式js-->
    <script>
        alert('沙漠骆驼');
    </script>
    <!-- 3.外链式js -->
    <script src="./js/main.js"></script>
    <script>
        //  1. 单行注释    Ctrl + /
        /*  2. 多行注释   默认的快捷键 Shift + Alt + a
            2. 多行注释   vscode中修改多行注释的快捷键： Ctrl + shift + /
         */
    </script>
</head>

<body>
    <!-- 1.行内样式的js直接写到元素内部 -->
    <input type="button" value="你好" onclick="alert('hello word!')">
</body>

</html>